r = [1, 2, 3, 4, 5]
mid = len(r) // 2
print(mid, r[mid])
print(r[:mid])
print(r[mid+1:])